<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:rich="http://richfaces.org/rich">

    <h:head>
        <title>Goalkeeper E-Shop</title>
        <h:outputStylesheet library="css" name="style.css" />
    </h:head>
    <h:body>

        <ui:composition template="template.xhtml">
            <ui:define name="content">
                <br/>
                <h:outputText styleClass="h1" value="#{msg.uploadImage}" />
                <br/>
                <br/>
                <h:messages styleClass="h2" />
                <br/>
                <h:form>
                    <h:panelGrid columns="2">
                        <h:panelGrid columns="1" style="text-align: center">
                            <rich:panel style="text-align: left; width: 300px;" header="#{msg.uploadImageInfo}">
                                <ul>
                                    <li>#{msg.uploadImageInfoMaxSize}</li>
                                    <li>#{msg.uploadImageInfoOnlyOneFile}</li>
                                    <li>#{msg.uploadImageInfoOnlyJpg}</li>
                                </ul>
                            </rich:panel>
                        </h:panelGrid>
                        <rich:fileUpload fileUploadListener="#{fileUploadBacking.listener}" acceptedTypes="jpg" maxFilesQuantity="1" ontyperejected="alert('#{msg.uploadImageError}');" />
                    </h:panelGrid>
                </h:form>
                <br/>
                <br/>
            </ui:define>
        </ui:composition>

    </h:body>
</html>
